CC=module load intel-mpi/4.1.1;module load intel/13.1;mpiicc
SOURCES=framework.c graph.c main.c message.c
HEADERS=.
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=gp

CFLAGS=-c -Wall -I$(HEADERS)
LDFLAGS=

all: $(SOURCES) $(EXECUTABLE)
	rm -rf $(OBJECTS)

clean:
	rm -rf $(OBJECTS) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

%.o: %.c
	$(CC) $(CFLAGS) $< -o $@
